From: Rui Matos Date: Sat, 1 Dec 2012 19:40:13 +0000 (+0100) Subject: AppSwitcher: Remove a lost timeout on destroy X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5318 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=5faeaa2028c7328413ffa6a60bf8479130b87dcb;p=gnome-shell.git AppSwitcher: Remove a lost timeout on destroy Doesn't look harmful but there's no point in running this code after we're destroyed. https://bugzilla.gnome.org/show_bug.cgi?id=689528 --- diff --git a/js/ui/altTab.js b/js/ui/altTab.js index 74a03a0fb..b58721923 100644 --- a/js/ui/altTab.js +++ b/js/ui/altTab.js @@ -417,6 +417,13 @@ const AppSwitcher = new Lang.Class({ this._iconSize = 0; this._altTabPopup = altTabPopup; this._mouseTimeOutId = 0; + + this.actor.connect('destroy', Lang.bind(this, this._onDestroy)); + }, + + _onDestroy: function() { + if (this._mouseTimeOutId != 0) + Mainloop.source_remove(this._mouseTimeOutId); }, _getPreferredHeight: function (actor, forWidth, alloc) {